<?PHP
/****************************************************************************
CLASS AutomatsBO from PHP
****************************************************************************/

class ArticleBannerBO extends BusinessObject{
  
  /* private function using in constructors*/ 
  function setAttributes(){
    $this->fields   = array(
			'id'				=>	'abID',
			'article'		=>	'abArticleID',
			'banner'		=>	'abBannerID',
			'position'	=>	'abPosition',
			'direction'	=>	'abDirection'
			);
		$a= new ArticleBO();
		$this->relations = array("{$a->tableName}" =>"{$a->tableName}.{$a->fields['id']} = {$this->tableName}.{$this->fields['article']}");
    BusinessObject::setAttributes();
  }  
  /* constructor */
  function ArticleBannerBO(){
    /** super(tableName) */
    BusinessObject::BusinessObject("article_banners");
    $this->setAttributes();
  }
}
?>